package com.qibo.rechar;

import android.view.View;
import android.widget.ImageButton;
import android.widget.TextView;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.qibo.baselib.base.BaseActivity;

/***
 * 充值
 */
@Route(path = "/rechargemodule/RecharMainActivity")
public class RecharMainActivity extends BaseActivity {
    private ImageButton imageButton;
    private TextView textView_titleBar;
    private TextView textView_Right_titleBar;

    @Override
    protected int getContentViewId() {
        return R.layout.rechargemodule_activity_main;
    }

    @Override
    protected void initView() {
        imageButton = findViewById(R.id.btnBack_pay1);
        textView_titleBar = findViewById(R.id.textView_titleBar);
        textView_Right_titleBar = findViewById(R.id.textView_Right_titleBar);
    }

    @Override
    protected void initAction() {
        imageButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();;
            }
        });
        textView_titleBar.setText("办理充值");
        textView_Right_titleBar.setText("二维码");
        textView_Right_titleBar.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
               switchActivity(RechargeQRCodeActivity.class);
            }
        });
    }

    @Override
    protected void initData() {

    }
}
